package com.loukou.lkt.lkt.utils;

import org.apache.commons.lang.math.RandomUtils;
import org.joda.time.DateTime;

public class VoucherCodeUtil {
	public static String ALLOCATION_PRIFIX="TF";//调拨单
	
	
	public static String getVoucherCode(String prifix){
		//年后两位+月+日+小时+分钟+秒+四位随机数字
		return prifix+new DateTime().toString("yyMMddHHmmss")+String.format("%04d",RandomUtils.nextInt(9999));
	}
}
